#include"MyVector.h"
using std::cout;
using std:: endl;
using namespace MyV;
using namespace MyRI;

void text1()
{
  vector<int> s;
  s.push_back(1);
  s.push_back(2);
  s.push_back(3);
  s.push_back(3);
  s.push_back(3);
  s.push_back(4);
  s.push_back(5);
  s.push_back(5);
  for(auto it = s.begin();it != s.end();it++)
  {
    cout << *it << " ";
  }
  cout << endl;
  vector<int> s1(s);
  for(size_t i = 0;i<s.size();i++)
  {
    cout << s[i] << " ";
  }
  cout << endl;
  vector<int> s2;
  s2 = s;
  s2.pop_back();
  s2.pop_back();
  s2.pop_back();
  s2.pop_back();
  s2.pop_back();
  s2.pop_back();
  s2.pop_back();
  for(auto i:s2)
  {
    cout << i << " ";
  }
  cout << endl;
  vector<int> s3(10,1);
  for(auto i:s3)
  {
    cout << i <<" ";
  }
  cout << endl;
  vector<float> s4(10,9.9);
  for(auto i:s4)
  {
    cout << i <<" ";
  }
  cout << endl;

}
void text2()
{
  vector<int> v;
  v.push_back(1);
  v.push_back(2);
  v.push_back(3);
  v.push_back(4);
  v.push_back(5);
  v.push_back(6);
  for(vector<int>::iterator it = v.begin();it != v.end();it++)
  {
    cout << (*it) << " ";
  }
  cout << endl;
 for(MyV::vector<int>::reverse_iterator rit = v.rbegin();rit != v.rend();)
 {
   cout << *(rit++) << " ";
 }
  cout << endl;
}
int main()
{

//  text1();
    text2();
  return 0;
}
